#Includes all miscellaneous functions that will be used in the program.
#These functions may be categorized at another time.
#Authors: Greg Dorman, Lewis Gordon

#Get input from the player to see whether the player chooses to use a melee attack
#or a spell.  If the input is not a valid integer the program will repeat the function.
def getUserInput(player):
	turnInput = input(player.Name+': Please enter\n(1) for melee\n(2) for spells\nSelection: ')
	print()
	if(turnInput=="1" or turnInput=="2"):
		return turnInput
	print("Invalid input.")
	return getUserInput(player)